            //text overlays
            function TxtOverlaybd(pos, txt, cls){

                // Now initialize all properties.
                this.pos_ = pos;
                this.txt_ = txt;
                this.cls_ = cls;
            }

            TxtOverlaybd.prototype = new BMap.Overlay();

            TxtOverlaybd.prototype.initialize = function(map){
				this.map_ = map;
				
                // Create the DIV and set some basic attributes.
                var div = this._div = document.createElement('DIV');
                div.className = this.cls_;
                div.innerHTML = this.txt_;
                div.style.zIndex = BMap.Overlay.getZIndex(this.pos_.lat);
                
				map.getPanes().labelPane.appendChild(div);
				return div;
            }
            TxtOverlaybd.prototype.draw = function(){

				var map = this.map_;
                var pixel = map.pointToOverlayPixel(this.pos_);
				this._div.style.left = pixel.x + "px";
				this._div.style.top  = pixel.y + "px";
      
            }
